import request from "@/utils/request";

const path = '/about'

export const getAboutMe = () => {
  return request({
    url: path,
  })
}

export const updateAboutMe = (data) => {
  return request({
    url: path + '/update',
    method: 'put',
    data
  })
}

export const delTechology = (id) => {
  return request({
    url: path + `/del/${id}`,
    method: 'delete',
  })
}

export const addTechnology = (name) => {
  return request({
    url: path + '/add',
    method: 'post',
    params: {
      name
    }
  })
}